Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

callback when update place #42

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

callback when update place #42

wants to merge 1 commit into from

Conversation

tchesa
Copy link

@tchesa tchesa commented Oct 1, 2018

use the vs-update directive to get a function callback called every time the place value updates.
Example:

<input
  type="text"
  name="place"
  ng-model="place.name"
  vs-google-autocomplete
  vs-autocomplete-validator
  vs-street-number="place.number" 
  vs-street="place.address"
  vs-city="place.city"
  vs-district="place.neighborhood"
  vs-state="place.state"
  vs-post-code="place.zip"
  vs-latitude="place.lat"
  vs-longitude="place.lng"
  vs-update="onPlaceUpdate()"/>

@EnmanuelParedesR
Copy link

Hello friend,

This a really good change and idk why the PR was not accepted, even though you forget to add the callback function on the scope params.

Have a nice day.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants